function showDia()
{
	showDialog("#logindialog");
}


window.showDialog = function(selector)
{
	var dlg = selector;
	if(selector.constructor === String)
		dlg = $(selector);

	// 点击关闭时，关闭对话框
	$(".close", dlg).click(function(){
		dlg.hide(); // Closure 闭包
	});

	dlg.show();
}